<form class="form-horizontal" name="host_form" ng-submit="save_snapshot()">
    <div class="modal-header">
        <a class="close" ng-click="close()">×</a>

        <h3>新建快照</h3>
    </div>
    <div class="modal-body">
        <div class="row-fluid">
            <div class="control-group">
                <label class="control-label">名称：</label>

                <div class="controls">
                    <input type="text" required ng-model="name" placeholder="快照名称"/>
                </div>
            </div>
                 <div class="control-group">
                <label class="control-label">备注：</label>

                <div class="controls">
                    <input type="text" required ng-model="desc"/>
                </div>
            </div>

        </div>
    </div>
    <div class="modal-footer">
        <a data-dismiss="modal" class="btn" ng-click="close()">关闭</a>
        <button type="submit" ng-disabled="!host_form.$valid" class="btn btn-primary">保存</button>
    </div>
</form>